#pragma once
#include "TPColorBase.h"
class CTPGradientQuad : public CTPColorBase
{
public:
	CTPGradientQuad(void);
	~CTPGradientQuad(void);
public:
	virtual BOOL FillColor(LPVOID pColorData, BYTE* & pBuffer, int nWidth, int nHeight, eBufferFormat eFormat) ;
	virtual int	 SaveColorToBuffer(LPVOID pColorDef, LPVOID	lpBuffer, int nLength) ;
	virtual int	 LoadColorFromBuffer(LPVOID hColor,LPVOID	lpBuffer,int nLength) ;

private:
	BOOL		 FillInCMethod(LPVOID pColorData, BYTE* & pBuffer, int nWidth, int nHeight, eBufferFormat eFormat) ;
	TPColorValue CalculatePointColor(int x, int y, float radius,float* pPtX,float* pPtY,TPColorValue* pColor);
};
